package dem02;
import java.io.*;
public class two80 {
    public static void main(String[] args) throws Exception{
        StringBuffer buffer=new StringBuffer();
        File file=new File("D:"+File.separator+"muyan"+File.separator+"vip"+File.separator+"dem02.txt");
        if(file.exists()){
            try (InputStream input =new FileInputStream(file)){
                byte data[]=new byte[8];
                int len =0;
                while((len=input.read(data)) !=-1){
                    buffer.append(new String(data,0,len));

                }
                System.out.println("读取到的数据内容["+buffer+"]");

            }catch (Exception e){}
        }
    }
}
